﻿using System;
using System.Collections.Generic;
using System.Text;
using Top.Api;
using Top.Api.Domain;
using Top.Api.Request;
using Top.Api.Response;
using Top.Api.Util;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {

            DefaultTopClient client = new DefaultTopClient("http://gw.api.taobao.com/router/rest", "23513270", "f2d544601dc7337baba70022e313728c","json");
            TbkSpreadGetRequest req = new TbkSpreadGetRequest();
            List<TbkSpreadGetRequest.TbkSpreadRequestDomain> list2 = new List<TbkSpreadGetRequest.TbkSpreadRequestDomain>();
            TbkSpreadGetRequest.TbkSpreadRequestDomain obj3 = new TbkSpreadGetRequest.TbkSpreadRequestDomain();
            list2.Add(obj3);
            obj3.Url = "http://uland.taobao.com/coupon/edetail?activityId=ddc09288afcd4a6598ff7acb7c15518b&pid=mm_111626146_16248065_61382730&itemId=539727504663&src=hax_hisine&dx=1";
            req.Requests_ = list2;
            TbkSpreadGetResponse rsp = client.Execute(req);
            Console.WriteLine(rsp.Body);
            
            Console.ReadKey();
        }
    }
}
